package com.guavestudios.fnfo.plugins {
	import com.guavestudios.utils.Format;
	import flash.events.Event;
	import flash.external.ExternalInterface;
	import flash.system.Capabilities;
	import flash.utils.getTimer;
	
	/**
	 * ...
	 * @author maze
	 */
	public class FlashVersionInfo extends BasicFnfoPlugin{
		
		public function FlashVersionInfo() {
			super();
			_pluginId = "FlashVersionInfo";
		}
		override protected function fnfo_gatherData(e:Event):void {
			super.fnfo_display_data(e);
			
			printInfo("PlayerVersion", Capabilities.version);
			printInfo("PlayerDebug", Capabilities.isDebugger.toString());
			printInfo("PlayerType", Capabilities.playerType);
			printInfo("PlayerAudio", Capabilities.hasAudio.toString());
			printInfo("PlayerMp3", Capabilities.hasMP3.toString());
			printInfo("SystemOs", Capabilities.os);
			printInfo("ScreenResulution", Capabilities.screenResolutionX.toString() + "/" + Capabilities.screenResolutionY.toString());
			
			printInfo("ExternalInterface", ExternalInterface.available.toString());
			printInfo("ExternalInterfaceObject", ExternalInterface.objectID);
			printInfo("ReportTime", (new Date()).toString());
			var d:Date = new Date(getTimer());
			printInfo("ReportExecution", Format.format("{0:d##}:{1:d##}:{2:d##}:{3:d###}",d.hoursUTC,d.minutesUTC,d.secondsUTC,d.millisecondsUTC));
		}
	}

}